@echo off
cls
echo ===============================================================================
echo Complete End-User Build
echo ===============================================================================
echo.

echo * Build 'Pac Mar.exe'
"C:\Program Files\Microsoft Visual Studio\VB98\vb6.exe" /make "..\PacMar.vbp" /outdir "..\..\"

echo * Build 'Level Editor.exe'
"C:\Program Files\Microsoft Visual Studio\VB98\vb6.exe" /make "..\LevelEditor.vbp" /outdir "..\..\"

echo * Build 'Launcher.exe'
"C:\Program Files\Microsoft Visual Studio\VB98\vb6.exe" /make "..\Launcher.vbp" /outdir "..\..\"

echo * Replace Icons
cd ..\Includes
call InsertResources.bat

echo * Create the installer
echo.
cd _Code\Installer
"C:\Program Files\NSIS\makensis.exe" /V3 "Installer Source.nsi"

echo.
echo ===============================================================================
pause
